/*
package com.runrunfast.fxj.config.redis;

import javax.annotation.Resource;

import org.apache.shiro.cache.Cache;
import org.apache.shiro.cache.CacheException;
import org.apache.shiro.cache.CacheManager;
import org.springframework.data.redis.core.RedisTemplate;

*/
/**
 * @author: 陈胤训
 * @create: 2019-03-14 14:21
 **//*

public class RedisCacheManager implements CacheManager {

    private long globExpire = 1800;

    public RedisCacheManager() {

    }

    public RedisCacheManager(Long globExpire) {

    }

    @Resource
    private RedisTemplate<String, Object> redisTemplate;

    @Override
    public <K, V> Cache<K, V> getCache(String name) throws CacheException {
        return new ShiroCache<K, V>(name, redisTemplate, globExpire);
    }
}
*/
